#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QUdpSocket>

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT
private:
    Ui::MainWindow *ui;
    QUdpSocket *socket;

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();



public slots:
    void onSendButtonClicked();
    void readPendingDatagrams();

    void open();
    void close();


};

#endif // MAINWINDOW_H
